// by: 陈同学
#include<iostream>
#include<string>
using namespace std;
int main()
{
  void inverted(string str);
  cout<<"Please enter one string:"<<endl;
  string str1;
  cin>>str1;
  inverted(str1);
  system("pause");
}
void inverted(string str)
{
    int n=str.length()-1;
    
    for (n;n>=0 ;n-- )
    {
      cout<<str[n];
    }
    
}